import 'package:flutter/cupertino.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:video_player/video_player.dart';

class CouponGoodsListState {
  CouponGoodsListState() {
    ///Initialize variables
  }

  TextEditingController searchTextEditingController = TextEditingController();

  RefreshController refreshController = RefreshController();

  /// 综合排序
  bool comprehensiveSorting = false;

  /// 销量排序
  bool salesRankingSorting = true;

  /// 价格排序 null 默认   false 降序   true 升序
  var priceSorting;

  /// 上新排序
  bool isNewest = false;

  /// 当前页码
  int currentPage = 1;

  /// 每页数量
  int pageSize = 50;

  /// 搜索商品的结果数组
  List<dynamic> commodityList = [];

  /// 推荐商品的结果数组
  List<dynamic> recommendCommodityList = [];

  /// 商品角标信息
  List angleInformationList = [];

  // 广告列表
  List advertising = [];

  // 搜索类型 0商品 1店铺
  int searchType = 0;
  List searchTypeList = [
    {'title': '商品', 'tyep': 0},
    {'title': '店铺', 'tyep': 1},
  ];

  int coupon_id = 0;
}
